package com.jprocms.module.cms.controller.admin.vote.vo;

import com.jprocms.module.cms.controller.admin.voteitem.vo.VoteItemUpdateReqVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "管理后台 - 投票更新 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class VoteUpdateReqVO extends VoteBaseVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8717")
    @NotNull(message = "ID不能为空")
    private Long id;

    @Schema(description = "选项集合", example = "16241")
    private List<VoteItemUpdateReqVO> items;

}
